package com.tianpengtech.common.util;


import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {


    public static String YYMM_FORMAT="yyyy-MM";
    public static String YYMM_SLASH_FORMAT="yyyy/MM";//生成形如『2017/07』这样的文件夹
    public static String formateData(Date date,String fomat){

        SimpleDateFormat formatter;
        formatter = new SimpleDateFormat(fomat);
        String dateStr = formatter.format(date);
        return dateStr;
    }
}
